<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('slides', function (Blueprint $table) {
            $table->id();
            $table->String("title")->comment('轮播图名称');
            $table->String("url")->nullable()->comment('跳转链接');
            $table->String("img")->comment('轮播图图片');
            $table->tinyInteger("status")->default(0)->comment('状态:0禁用 1正常');
            $table->integer("seq")->default(1)->comment('排序');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('slides');
    }
};
